// 模糊查询返回查询到的用户
var patient = [{
    name: '张三',
    number: '12345'
},
{
    name: '张三1',
    number: '123456'
},
{
    name: '张三2',
    number: '1234577'
},
{
    name: '张三44',
    number: '12345ww'
}
]

Mock.mock('/pages/patIn/getPatientMoHu', 'post', function (e) {
console.log('后端接收模糊查询参数：' + e.body)
// return patient
return {error: '病人不存在'}

})




// 根据用户姓名身份证号 查询挂号信息
Mock.mock('/pages/guaHao/getGuaHaoPatient', 'post', function (e) {
    console.log('前端传的准确搜索参数：')
    console.log(e.body)
    var message = {
        name: '李四',
        age: 12,
        gender: '男',
        number: '123456',
        cardNumber: '1236677',
        haveFamily: '未婚',
        tell: '17340540906',
    }
    return message
})



Mock.mock('pages/guaHao/addPatientMessage', 'post', function (e) {
    console.log('前端提交的参数：')
    console.log(e.body)
    return  {
        name: '张三',
        dept: '精神科',
        doctor: '李四',
        money: 120
    }
})